package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.GcGztcz;
import com.ruoyi.gcgl.mapper.GcGztczMapper;
import com.ruoyi.gcgl.service.IGcGztczService;

/**
 * 工资条城志Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-06
 */
@Service
public class GcGztczServiceImpl implements IGcGztczService 
{
    @Autowired
    private GcGztczMapper gcGztczMapper;

    /**
     * 查询工资条城志
     * 
     * @param id 工资条城志主键
     * @return 工资条城志
     */
    @Override
    public GcGztcz selectGcGztczById(Long id)
    {
        return gcGztczMapper.selectGcGztczById(id);
    }

    /**
     * 查询工资条城志列表
     * 
     * @param gcGztcz 工资条城志
     * @return 工资条城志
     */
    @Override
    public List<GcGztcz> selectGcGztczList(GcGztcz gcGztcz)
    {
        return gcGztczMapper.selectGcGztczList(gcGztcz);
    }

    /**
     * 新增工资条城志
     * 
     * @param gcGztcz 工资条城志
     * @return 结果
     */
    @Override
    public int insertGcGztcz(GcGztcz gcGztcz)
    {
        return gcGztczMapper.insertGcGztcz(gcGztcz);
    }

    /**
     * 修改工资条城志
     * 
     * @param gcGztcz 工资条城志
     * @return 结果
     */
    @Override
    public int updateGcGztcz(GcGztcz gcGztcz)
    {
        return gcGztczMapper.updateGcGztcz(gcGztcz);
    }

    /**
     * 批量删除工资条城志
     * 
     * @param ids 需要删除的工资条城志主键
     * @return 结果
     */
    @Override
    public int deleteGcGztczByIds(String ids)
    {
        return gcGztczMapper.deleteGcGztczByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除工资条城志信息
     * 
     * @param id 工资条城志主键
     * @return 结果
     */
    @Override
    public int deleteGcGztczById(Long id)
    {
        return gcGztczMapper.deleteGcGztczById(id);
    }

	@Override
	public List<GcGztcz> selectGcGztcz4List(GcGztcz gcGztcz) {
		// TODO Auto-generated method stub
		return gcGztczMapper.selectGcGztcz4List(gcGztcz);
	}

	@Override
	public int updateGcGztcz4(GcGztcz gcGztcz) {
		// TODO Auto-generated method stub
		return gcGztczMapper.updateGcGztcz4(gcGztcz);
	}
}
